<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{$title|default=''|htmlentities} – {$site.name|htmlentities}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta name="keywords" content="{$keywords|htmlentities}">
    <meta name="description" content="{$description|htmlentities}">
    <link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
    <link href="/assets/css/frontend.css" rel="stylesheet">
    <link href="/assets/css/common.css" rel="stylesheet">
    <script type="text/javascript">
        var require = {
            config: JSON.parse('{$config|json_encode}')
        };
      
    </script>
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="__CDN__/assets/js/html5shiv.js"></script>
    <script src="__CDN__/assets/js/respond.min.js"></script>
    <![endif]-->
    <style>
        .whitebg{
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%);
            background: -webkit-linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%); 
            background: -moz-linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%); 
            background: -o-linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%); 
            background: -ms-linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%); 
            min-height:100px;
            padding-top: 20px;
            display: flex;flex-direction: column;justify-content: center;align-items: center;
            color:#333;font-size: 15px;
       }
       .alert-warning {
            color: #e08e0b;
            border-color: #e08e0b;
            background-color: #fff;
        }
        .resource-con{
        flex:1;display:flex;flex-direction: column; font-size: 14px;
    }
    </style>
</head>

<body>
    <div id="app">
        <div id="loading" ref="loadNode">
            <div id="loading-center">
                <div id="loading-center-absolute">
                    <div class="object" id="object_four"></div>
                    <div class="object" id="object_three"></div>
                    <div class="object" id="object_two"></div>
                    <div class="object" id="object_one"></div>
                </div>
            </div>
        </div>
        <header class="header">
            <div class="header-container">
                <div class="header-left">
                    <div class="header-logo" @click="handle('/',false)">
                        <img src="__CDN__/assets/img/logo.png" alt="Logo" class="header-logo">
                        <span class="header-title">{$site.name|htmlentities}</span>
                    </div>
                    <nav class="header-nav">
                        <a href="javascript:;" @click="handle(item.url,item.is_login)" :class="item.url =='/'?`nav-item active`:`nav-item`" v-for="(item,index) in head">{{item.name}}</a>
                    </nav>
                </div>
                <div class="header-right"  v-if="user">
                    <i class="fa fa-list-alt header-icon" @click="handle('/notice',false)"></i>
                    <div class="user-info" data-toggle="dropdown">
                        <img :src="user.avatar || '__CDN__/assets/img/avatar.png'" class="user-avatar">
                        <span class="user-name">{{ user.nickname }}</span>
                    </div>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header" @click="handle('/user/info')">
                            <img :src="user.avatar" class="img-circle" alt="">
                            <p>
                                <div>{{ user.nickname }}</div>
                                <small>闻道ID:{{user.id}}</small>
                            </p>
                        </li>
                        <li class="user-body">
                            <div class="user-list" @click="handle('/user/info')">
                                <div>我的资料</div>
                                <i class="fa fa-chevron-right"></i>
                            </div>
                            <div  class="user-list" @click="handle('/user/favorites')">
                                <div>我的收藏</div>
                                <i class="fa fa-chevron-right"></i>
                            </div>
                            <div class="user-list" @click="handle('/user/adviser')">
                                <div>我的实战</div>
                                <i class="fa fa-chevron-right"></i>
                            </div>
                        </li>
                        <li class="user-body">
                            <div class="user-list" @click="handle('/user/list')">
                                <div>榜单明细</div>
                                <i class="fa fa-chevron-right"></i>
                            </div>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div>
                                <a href="/user/logout"><i class="fa fa-sign-out"></i>
                                    {:__('Logout')}</a>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="header-right" v-else   @click="handle('/login',false)">
                    <i class="fa fa-list-alt header-icon" ></i>
                    <div class="user-info">
                        <i class="fa fa-user-circle fa-fw header-icon" style="margin-right: 5px;"></i>
                        <span class="user-name">登录</span>
                    </div>
                </div>
                
            </div>
        </header>

        <section class="container">
            <div class="row">
                <div class="col-xs-12" style="position: relative;">
                    <img src="/assets/img/bg.jpg" width="100%" height="auto">
                    <div style="position: absolute; bottom: 30px; left:50px; color: #fff; font-size: 32px;">
                       
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-2 hidden-xs">
                    <div class="sidebar-header"><span>通知中心</span></div>
                    <div class="category-menu">
                        <div class="category-item">
                            <div :class="currentTab == 'follow' ?`category-header expanded`:`category-header`" @click="handleCurrent('follow')"><span>点赞</span></div>
                        </div>
                        <div class="category-item">
                            <div :class="currentTab == 'comment' ?`category-header expanded`:`category-header`"  @click="handleCurrent('comment')"><span>评论</span></div>
                        </div>
                        <div class="category-item">
                            <div :class="currentTab == 'favorites' ?`category-header expanded`:`category-header`" @click="handleCurrent('favorites')"><span>收藏</span></div>
                        </div>
                        <div class="category-item">
                            <div :class="currentTab == 'flag' ?`category-header expanded`:`category-header`" @click="handleCurrent('flag')"><span>旗子</span></div>
                        </div>
                        <div class="category-item">
                            <div :class="currentTab == 'system' ?`category-header expanded`:`category-header`" @click="handleCurrent('system')"><span>系统通知</span></div>
                        </div>
                    </div>
                </div>
                <div class="col-md-10 col-xs-12">
                    <div class="content">
                       <div style="display: flex; flex-direction: column;" v-if="list.length > 0">
                            <div style="display: flex; align-items: center; padding:10px; border-bottom: 1px solid #f1f1f1;">
                                <div style="display: flex; flex:1;" v-if="currentTab =='system'">
                                </div>
                                <div style="display: flex; flex:1;" v-else>
                                    <div style="width: 24px; height: 24px; border-radius: 50%; overflow: hidden;">
                                        <img :src="item.user.avatar" width="100%" height="100%">
                                    </div>
                                    <div style="margin-left: 10px; font-size: 15px;color:#333">
                                        {{item.user.nickname}}<span v-if="currentTab='follow'">点赞了你的帖子</span><span v-if="currentTab='comment'">评论了你的帖子</span><span v-if="currentTab='favorites'">收藏了你的帖子</span><span v-if="currentTab='flag'">赠送你{{item.nums}}个旗子</span>
                                    </div>
                                </div>
                                <div style="font-size: 13px; color: #999;">{{item.createtime}}</div>
                            </div>
                       </div>
                       <div style="display: flex; justify-content: center; align-items: center;flex-direction: column; padding-top: 20px; font-size: 14px; color:#c9c9c9;" v-else>
                            <img src="/assets/img/error.svg" width="100px" height="100px">
                            <div style="margin-top: 10px;">暂无数据</div>
                       </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
</body>
<script src="/assets/js/require.js" data-main="/assets/js/require-frontend.js?v={$site.version|htmlentities}"></script>
</html>
